<!doctype html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Template • TodoMVC</title>
	<link rel="stylesheet" href="node_modules/todomvc-common/base.css">
	<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
	<link rel="stylesheet" href="css/app.css">
</head>

<body>
	<section class="todoapp" id="app">
		<header class="header">
			<h1>todos</h1>
			<input class="new-todo" placeholder="What needs to be done?" v-model.trim="newTodo" @keyup.enter="add" autofocus>
		</header>
		<!-- This section should be hidden by default and shown when there are todos -->
		<section class="main" v-show="todos.length">
			<input v-model="isAll" id="toggle-all" class="toggle-all" type="checkbox">
			<label for="toggle-all">Mark all as complete</label>
			<ul class="todo-list" v-for="item in isShow" :key="item.id">
				<li :class="{completed: item.completed, editing: editingCode === item}">
					<div class="view">
						<input class="toggle" type="checkbox" v-model="item.completed">
						<label @dblclick="getEditing(item)">{{ item.title }}</label>
						<button class="destroy" @click="removeTodo(item)"></button>
					</div>
					<input @keyup.esc="cancel(item)" @keyup.enter="enterT(item)" @blur="enterT(item)" class="edit" v-model="item.title" v-focus="item === editingCode">
				</li>
			</ul>
		</section>
		<footer class="footer" v-show="todos.length">
			<span class="todo-count"><strong>{{ count.length }}</strong> item{{ isS() }} left</span>
			<ul class="filters">
				<li>
					<a :class="{selected: type === 'all'}" @click="type = 'all'" href="javascript:;">All</a>
				</li>
				<li>
					<a :class="{selected: type === 'active'}" @click="type = 'active'" href="javascript:;">Active</a>
				</li>
				<li>
					<a :class="{selected: type === 'completed'}" @click="type = 'completed'" href="javascript:;">Completed</a>
				</li>
			</ul>
			<button class="clear-completed" @click="removeCompleted()" v-show="count.length < todos.length">Clear completed</button>
		</footer>
	</section>
	<footer class="info">
		<p>Double-click to edit a todo</p>
		<p>Template by <a href="http://sindresorhus.com">Sindre Sorhus</a></p>
		<!-- Change this out with your name and url ↓ -->
		<p>Created by <a href="http://todomvc.com">you</a></p>
		<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
	</footer>
	<script src="./node_modules/vue/dist/vue.js"></script>
	<script src="js/app.js"></script>
</body>

</html>